[NET] front: Invert the test for a kernel with GSO support.
authorIan Campbell <ian.campbell@xensource.com>
Thu, 5 Oct 2006 09:09:20 +0000 (10:09 +0100)
committerIan Campbell <ian.campbell@xensource.com>
Thu, 5 Oct 2006 09:09:20 +0000 (10:09 +0100)
This simplifies a subsequent patch.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c

index 44404afbcc5323c9aab8c63972dd895ef3398eab..bca47e2e927b00d03d9b958c015dc4947e9126bc 100644 (file)
@@ -85,10 +85,7 @@ static const int MODPARM_rx_flip = 0;
 #define RX_COPY_THRESHOLD 256
 
 /* If we don't have GSO, fake things up so that we never try to use it. */
-#ifndef NETIF_F_GSO
-#define netif_needs_gso(dev, skb)      0
-#define dev_disable_gso_features(dev)  ((void)0)
-#else
+#ifdef NETIF_F_GSO
 #define HAVE_GSO                       1
 static inline void dev_disable_gso_features(struct net_device *dev)
 {
@@ -96,6 +93,9 @@ static inline void dev_disable_gso_features(struct net_device *dev)
        dev->features &= (1 << NETIF_F_GSO_SHIFT) - 1;
        dev->features |= NETIF_F_GSO_ROBUST;
 }
+#else
+#define netif_needs_gso(dev, skb)      0
+#define dev_disable_gso_features(dev)  ((void)0)
 #endif
 
 #define GRANT_INVALID_REF      0